<!--{template user/header}-->
<div style="height:30px;">&nbsp;</div>
<form action="{u user/modify}" method="post">
<table class="modify-table" border="0" cellpadding="0" cellspacing="0">
	<thead>
		<tr><th colspan="2" class="mt-th"><strong>我的信息</strong></th></tr>
	</thead>
  	<tbody>
		<tr>
			<td class="mt-td-l first">会员名称：</td>
			<td class="mt-td-r first txt">$user['user_name']</td>
		</tr>
		<tr>
			<td class="mt-td-l">会员积分：</td>
			<td class="mt-td-r txt">$user['score']</td>
		</tr>
		<tr>
			<td class="mt-td-l">联系电话：</td>
			<td class="mt-td-r">
				<input name="tel" type="text" id="tel" size="40" class="text" value="$user['tel']"/>
			</td>
		</tr>
		<tr>
			<td class="mt-td-l">联系邮箱：</td>
			<td class="mt-td-r">
				<input name="data[email]" type="text" id="email" size="40" class="text" value="$user['data']['email']" />
			</td>
		</tr>
		<tr>
			<td class="mt-td-l">QQ号码：</td>
			<td class="mt-td-r">
				<input name="qq_msn" type="text" id="qq_msn" size="20" class="text" value="$user['qq_msn']" />
			</td>
		</tr>
		<tr>
			<td class="mt-td-l">所在城市：</td>
			<td class="mt-td-r">
				<select name="city_id" tabindex="5" >
					<!--{loop $_FANWE['cache']['city']['all'] $city}-->
					<option value="$city[id]"{if $city[id] == $user['city_id']} selected{/if}>$city[name]</option>
					<!--{/loop}-->
				</select>
			</td>
		</tr>
		<tr>
			<td class="mt-td-l">&nbsp;</td>
			<td class="mt-td-r">
				<input type="hidden" name="action" value="modifyhandle" />
				<input type="hidden" name="form_hash" value="{FORM_HASH}" />
				<input type="submit" class="formbutton" id="user-submit" value="确 定" />
			</td>
		</tr>
	</tbody>
</table>
</form>
<div style="height:60px;">&nbsp;</div>
<script type="text/javascript">
jQuery(function($){
	tooltipTop = 0;
	
	$("#user-submit").click(function()
	{
		if($.checkRequire($("#tel").val()))
		{
			if($.checkPhone($("#tel").val()) && !$.checkMobilePhone($("#tel").val()))
			{
				$.showErr("请输入正确的联系电话");
				return false;
			}
		}
		
		if($.checkRequire($("#email").val()))
		{
			if(!$.checkEmail($("#email").val()))
			{
				$.showErr("请输入正确的联系邮箱");
				return false;
			}
		}
		
		if($.checkRequire($("#qq_msn").val()))
		{
			if(!$.checkQQMsn($("#qq_msn").val()))
			{
				$.showErr("请输入正确的QQ号码");
				return false;
			}
		}
	});
});
</script>
<!--{template user/footer}-->